package com.icss.train_sys_back.service.ticket_manage.Impl;

import com.icss.train_sys_back.entity.ticket_manage.RefundTicketEntity;
import com.icss.train_sys_back.mapper.ticket_manage.RefundTicketManageMapper;
import com.icss.train_sys_back.service.ticket_manage.RefundTicketManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 小泽
 * @createTime 2025/10/7 17:34
 */
@Service
public class RefundTicketManageServiceImpl implements RefundTicketManageService {
    @Autowired
    private RefundTicketManageMapper refundTicketManageMapper;
    //退票记录分页+条件查询
    @Override
    public List<RefundTicketEntity> getListConditions(String refundId, String orderId, String username, Integer status) {
        return refundTicketManageMapper.getListConditions(refundId,orderId,username,status);
    }

    //退票审核通过处理
    @Override
    public void updateStatus(String refundId, Integer updateStatus) {
        refundTicketManageMapper.updateStatus(refundId,updateStatus);
    }
    //退票审核拒绝退票处理
    @Override
    public void updateStatusReject(String refundId, String remark) {
        refundTicketManageMapper.updateStatusReject(refundId,remark);
    }
}
